using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Crossborder.Domian.Products
{
    public class ProductPhotos : BaseEntity
    {
        /// <summary>
        /// 产品Id
        /// </summary>
        /// <value></value>
        public string ProductId { get; set; }

        /// <summary>
        /// 图片Guid
        /// </summary>
        /// <value></value>
        public string PhotoId { get; set; }

        /// <summary>
        /// 图片地址
        /// </summary>
        /// <value></value>
        public string ImageUrl { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        /// <value></value>
        public int Order { get; set; }

        public void Create()
        {
            this.ProductId = Guid.NewGuid().ToString();
            this.CreateDate = DateTime.Now;
            this.IsDelete = false;
            this.IsEnabled = true;
        }
    }
}